Skip to main content
POST
/
api
/
image
/
enhance
/
image-lossless-enlargement
Image Upscaler
curl --request POST \
  --url https://www.ailabapi.com/api/image/enhance/image-lossless-enlargement \
  --header 'Content-Type: multipart/form-data' \
  --header 'ailabapi-api-key: <api-key>' \
  --form 'upscale_factor=<string>' \
  --form 'mode=<string>' \
  --form 'output_format=<string>' \
  --form 'output_quality=<string>' \
  --form image=@example-file
{
  "request_id": "",
  "log_id": "",
  "error_code": 0,
  "error_code_str": "",
  "error_msg": "",
  "error_detail": {
    "status_code": 200,
    "code": "",
    "code_message": "",
    "message": ""
  },
  "data": {
    "url": ""
  }
}

Authorizations

ailabapi-api-key
string
header
required

API Key for authentication

Body

multipart/form-data
image
file
upscale_factor
string

Magnification.

mode
string

Image output mode. <li>base: Normal mode, i.e. stable super-resolution effect.</li> <li>enhancement: Enhancement mode, which has a more prominent enhancement effect than the normal mode, further improving the clarity and sharpness of the output image.</li>

output_format
string

Output image format.

output_quality
string

Quality factor of the output image, where a higher value corresponds to higher quality. Only applicable when output_format=jpg.

Response

200 - application/json

Success

The response is of type object.